package tea;

import java.util.List;

import org.junit.Test;

import com.github.pagehelper.PageInfo;
import com.zh.tea.entity.Tea;
import com.zh.tea.service.TeaService;
import com.zh.tea.service.impl.TeaServiceImpl;

public class SelectByAnd {
	@Test
	public void select(){
		TeaService teas=new TeaServiceImpl();
		Tea tea=new Tea();
		tea.setBrandid(1);
		tea.setTypeid(1);
		tea.setProloc("龙井");
		PageInfo<Tea> teal=teas.selectTeaByAnd(tea, 1, 8);
		for(Tea te:teal.getList()){
			System.out.println(te.getId());
		}
	}
	
}
